<template>
    <div>
        <h1>{{title}}</h1>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                title: '这是一个h1标签'
            }
        }
    }
</script>

<style scoped>
    h1 {
        color: red;
    }
</style>